/*
 * Copyright (C) 2010 Seapeak.Xu
 *
 * fostmq may be copied only under the terms of the GNU General
 * Public License V3, which may be found in the fostmq source kit.
 *
 * Created on: 2010-8-17
 * Author: Seapeak.Xu
 */

#ifndef FOST_EVENT_H
#define FOST_EVENT_H
#ifdef __cplusplus
extern "C"
{
#endif

#include "fost_taskpool.h"

	/*
 * i donot konw why use struct task_elt_t
 * but if you use task_t,there is an error when build
 * o my god,please donot ask me.
 */
	
	void client_request_event(int sock, short events, void *arg);
	void client_response_event(int sock, short events, void *arg);
	void server_request_event(int sock, short events, void *arg);
	void server_response_event(int sock, short events, void *arg);
	void server_work_init(struct task_elt_t *task);
	void client_work_init(struct task_elt_t *task);
#ifdef __cplusplus
}
#endif
#endif /* FOST_EVENT_H */
